﻿using ExtensionHelper;

namespace Expression
{
    using Interface;

    /// <summary>
    /// 
    /// </summary>
    public class ArgInt : ArgBase
    {
        /// <summary>
        /// 
        /// </summary>
        public new int Value { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="arg"></param>
        /// <param name="exp"></param>
        public override void Converter(IArg arg ,IAlgorithmBehaviours exp)
        {
            this.Name = arg.Name;
            this.Value = arg.Value.ToString().ToInt(0) ;
            exp.AddParameters(this.Name,this.Value);
        }
    }

}
